﻿<%@ Page Title="Fornecedor" MasterPageFile="~/Site.master" Language="C#" AutoEventWireup="true" CodeBehind="Supplier.aspx.cs" Inherits="LuckyLoot.Presentation.SupplierPage" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <fieldset><legend>Fornecedor</legend>
    <div>
        <label for="supplierName">Nome*</label><br />
        <asp:TextBox runat="server" ID="supplierName"   CssClass="k-textbox" ClientIDMode="Static" required></asp:TextBox><br />

        <label for="supplierPhone">Telefone</label><br />
        <asp:TextBox runat="server" ID="supplierPhone"   CssClass="k-textbox" ClientIDMode="Static"></asp:TextBox><br />
        
        <label for="supplierEmail">Email</label><br />
        <asp:TextBox runat="server" ID="supplierEmail"   CssClass="k-textbox" ClientIDMode="Static" ></asp:TextBox><br />
        
        <label for="supplierDescription">Descrição dos serviços/produtos oferecidos</label><br />
        <asp:TextBox runat="server" ID="supplierDescription"  CssClass="k-textbox" Width="350" ClientIDMode="Static" TextMode="MultiLine" Columns="20" Rows="4"  ></asp:TextBox><br />

        <label for="supplierWebSite">Site</label><br />
        <asp:TextBox runat="server" ID="supplierWebSite"   CssClass="k-textbox" ClientIDMode="Static" ></asp:TextBox><br />

        <label for="supplierLatestPurchase">Data da última compra*</label><br />
        <asp:TextBox runat="server" ID="supplierLatestPurchase" Width="350" ClientIDMode="Static" required></asp:TextBox><span class="k-invalid-msg" data-for="ctl00$MainContent$supplierLatestPurchase"></span><br /><br />

        <asp:Button runat="server" ID="SaveSupplier" Text="Salvar"  CssClass="k-button" />
    </div>
    </fieldset>
    <h1><asp:Label ID="suppliersLabel" Visible="false" runat="server" Text="Fornecedores"></asp:Label></h1>
    <asp:GridView ID="suppliersGrid" Visible="false" ClientIDMode="Static" runat="server" EmptyDataText="-" ></asp:GridView>

    <script>
        $(document).ready(function () {

            var currentTime = new Date();
            var month = currentTime.getMonth();
            var day = currentTime.getDate();
            var year = currentTime.getFullYear();

            $("#supplierLatestPurchase").kendoDatePicker({
                format: "dd/MM/yyyy",
                start: "month",
                depth: "month",
                min: new Date(1900, 0, 1),
                max: new Date(year, month, day)
            });

            $("#suppliersGrid").kendoGrid({
                selectable: true
            });

        });

    </script>
</asp:Content>